﻿using System;
using System.Collections.Generic;
 
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SQLExpressDAL;

public partial class Manageweb_Member_QueryAB3Mem : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Btn_Submit_Click(object sender, EventArgs e)
    {
        BindRecords();
    }

    private void BindRecords()
    {
        DealRecord obj = new DealRecord();
        this.GV_UserList.DataSource = obj.GetDealRecord(Session["UserID"].ToString(), this.txtBeginDate.Text, this.txtEndDate.Text, this.ddlPiCi.SelectedValue);
        this.GV_UserList.DataBind();
    }


    protected void GV_UserList_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        this.GV_UserList.PageIndex = e.NewPageIndex;
        BindRecords();
    }
}
